package cn.ipokerface.api.annotation;

import java.lang.annotation.*;

import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * Created by       PokerFace
 * Create Date      2019-12-11.
 * Email:           <a href="mailto:214888341@163.com">214888341@163.com</a>
 * Version          1.0.0
 * <p>
 * Description:
 */



@Target({ElementType.METHOD, ElementType.FIELD })
@Retention(RUNTIME)
@Documented
@Repeatable(ApiEnum.ApiEnums.class)
public @interface ApiEnum {

    String name() default "";

    String key() default "";

    ApiEnumValue[] value() default {};


    @Target({ElementType.METHOD, ElementType.FIELD })
    @Retention(RUNTIME)
    @Documented
    public @interface ApiEnums{
        ApiEnum[] value();
    }

}
